<%@ page language="java" import="java.util.*" import="java.sql.*" import = "orm.*"  pageEncoding="utf-8" errorPage="errorPage.jsp"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href = "<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发布新通知</title>
<link href="css/aStyles.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<!-- CONTAINER START -->
<div id = "container">
	<!-- HEADER START -->
        <div id = "top">
        	<div id = "navigation">
            	<html:link page="/admi/admi.jsp" styleClass = "link">&nbsp;&nbsp;&nbsp;&nbsp;首页</html:link>
                <html:link page="/admi/notice.jsp" styleClass = "link">&nbsp;&nbsp;&nbsp;&nbsp;通知</html:link>
                <html:link page="/admi/accMan.jsp" styleClass = "link">&nbsp;&nbsp;&nbsp;&nbsp;帐户管理</html:link>
                <html:link page="/admi/message.jsp" styleClass = "link">&nbsp;&nbsp;&nbsp;&nbsp;留言板管理</html:link>
            </div>
        </div>
        <!-- HEADER END -->
        
   	<!-- LOGIN START -->
        <div id = "login">
        	<html:link page="" styleClass="viewTest">·查看当前考试</html:link>
          	<p><html:link page="/admi/admModifyPwd.jsp" styleClass="modifyPwd">·修改密码</html:link></p>
            <p><html:link forward="logout" styleClass="logout">·注销登录</html:link></p>
  </div>
        <!-- LOGIN END -->
        
        <!-- CLOCK START -->
  <div id = "clock">
        	<iframe src="index/clock.html" height="407" width="296" frameborder="0" scrolling="no"
            		marginheight="0" marginwidth="0" id="clockFrame" name="clockFrame"></iframe>
</div>
        <!-- CLOCK END -->
        
        <!-- MAIN START -->
      	<div id = "main">
        	<div id = "title">≡发布新通知≡
            <hr />
         	</div>
     		<div id = "notice">
  <form method="post" name="newNoticeForm" action="newNoticeAction.do">
                	<table>
                		<tr>
                			<td align="right"><label>标题：</label></td>
                        	<td title="input"><input type="text" name="title" /></td>
                    	</tr>
                        <tr>
                        	<td height="100" align="right"><label>内容：</label></td>
                            <td><textarea name="content" rows="10" cols="50"></textarea></td>
                   	  	</tr>
   					</table>
                    <table>
       	  				<tr align="center">
                            <td><input type="submit" name="submit" value="发布" /></td>
                            <td><input type="reset" name="reset" value="重置" /></td>
                            <td><input type="button" name="cancel" value="取消" onclick="window.location.href='notice.jsp'" /></td>
                        </tr>
                    </table>
              </form>
            </div>
        </div>
	<!-- MAIN END -->
	
	<script type="text/javascript">
		<% if(request.getAttribute("error") != null){%>
		<%="alert(\""%>
		<%="添加失败)\""%>
		<%request.removeAttribute("error");}%>
	</script>
        
	<!-- FOOTER START -->
	<div id = "footer">
  </div>
	<!-- FOOTER END -->
        
  </div>
    <!-- CONTAINER END -->
    
</body>
</html>
